home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
compuserve-file-archive
/
20 Music & Utilities
/
GILLIGAN.PIL
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
12KB
|
26 lines
100 PRINT CHR$(147):PRINT " SIDPLAYER SONG AND PICTURE DISSOLVER"
110 PRINT " BY CRAIG CHAMBERLAIN 6/25/86":PRINT:SP=783
130 WR=3032:A=WR+70:L=PEEK(A):FOR K=1 TO L:F$=F$+CHR$(PEEK(A+K)):NEXT:A=A+K
140 ML=PEEK(A)+256*PEEK(A+1):MA=A+2:A=MA+ML:PL=PEEK(A)+256*PEEK(A+1):PA=A+2
300 PRINT " THIS PROGRAM WRITES TO DISK
305 [153] " THE MUSIC AND PICTURE FILES":[153] " FOR ONE SIDPLAYER SONG":[153]
320 [153] " INSERT A DISK TO RECEIVE":[153] " THE MUSIC AND PICTURE FILES,
325 PRINT " AND PRESS ANY KEY":PRINT
330 POKE 198,0:WAIT 198,15:GET G$
400 OPEN 2,8,15,"I0:":INPUT#2,A,B$,C,D:IF A GOTO 710
410 PRINT " WRITING " F$ ".MUS"
420 OPEN 1,8,2,F$+".MUS,W,P":INPUT#2,A,B$,C,D:IF A GOTO 710
430 SYS WR,MA,MA+ML:IF PEEK(SP)AND1 GOTO 700
440 CLOSE 1:INPUT#2,A,B$,C,D:IF A GOTO 710
510 PRINT " WRITING " F$ ".PIC"
520 OPEN 1,8,2,F$+".PIC,W,P":INPUT#2,A,B$,C,D:IF A GOTO 710
530 SYS WR,PA,PA+PL:IF PEEK(SP)AND1 GOTO 700
540 CLOSE 1:INPUT#2,A,B$,C,D:IF A GOTO 710
600 PRINT:PRINT " SCRATCH " F$ ".PIL? ";
610 WAIT 198,15:GET G$:IF G$="N" THEN PRINT "NO":GOTO 690
620 IF G$<>"Y" GOTO 610
630 PRINT "YES":PRINT#2,"S0:"+F$+".PIL":INPUT#2,A,B$,C,D:IF A>2 GOTO 710
690 CLOSE 2:END
700 INPUT#2,A,B$,C,D
710 PRINT:PRINT " ERROR: " B$:CLOSE 1:CLOSE 2:END